<?php $this->load->view('home/layout/header') ?>
<header class="my-head flex">
    <div class="my-return">
        <a href="javascript:history.back();">
            <i class="iconfont icon-zuojiantou"></i>
        </a>
    </div>
    <div class="my-name">
        积分商城
    </div>
</header>


<div class="my-youbi-banner">
    <div class="widthMax">
        <img src="/skins/home/images/youbi_banner.png" />
    </div>
</div>
<div class="my-youbi">
    <div class="widthMax am-cf my-youbi-1">
        <a href="<?php echo site_url('home/ucenter/index'); ?>" class="youbi"><i></i>
            <strong><?php echo ( isset($account) && ($account->amount_bonus >0) ) ? $account->amount_bonus : 0; ?></strong>
            <span>积分</span>
        </a>
        <a href="<?php echo site_url('home/discountMall/bonusRule'); ?>" class="youbi-rule">积分使用规则></a>
    </div>
</div>
<section class="credit-ticn widthMax" id="youbi-shop">
    <div class="item-you">
        <ul class="am-cf">
            <li>
                <a href="<?php echo site_url('scenic/home/index'); ?>" class="flex">
                    <div class="flex-1">
                        <h4>积分玩乐</h4>
                        <p>惠游惠玩</p>
                    </div>
                    <img src="/skins/home/images/use.png">
                </a>
            </li>
            <li>
                <a href="<?php echo site_url('tourism/tourism/index'); ?>" class="flex">
                    <div class="flex-1">
                        <h4>积分商城</h4>
                        <p>支付抵现</p>
                    </div>
                    <img src="/skins/home/images/youw.png">
                </a>
            </li>
        </ul>
    </div>
    <div class="scenic-area">
        <div class="youbi-tabs">
            <ul class="am-nav am-nav-tabs" data-am-sticky>
                <li class="am-active" tag-id="duihuan">
                    <a href="javascript:;">全额兑换</a>
                </li>
                <li tag-id="chuyou">
                    <a href="javascript:;">积分出游</a>
                </li>
                <li tag-id="renxinggou">
                    <a href="javascript:;">积分惠购</a>
                </li>
            </ul>
        <?php if ($tourismListBonus->num_rows() > 0) : ?>
        <div class="am-tab-panel duihuan shop-area" id="duihuan">
            <div class="flex">
                <div class="area-laber flex flex-1">
                    <h5>全额兑换</h5>
                    <p class="flex-1">
                        超值购
                    </p>
                </div>
                <a href="<?php echo site_url('tourism/goods/search'); ?>" class="area-mose">
                    更多<i class="iconfont">&#xe614;</i>
                </a>
            </div>

            <ul class="am-cf">
                <?php if ($tourismListBonus->num_rows() > 0): ?>
                    <?php foreach($tourismListBonus->result() as $value) : ?>
                    <li>
                        <a href="<?php echo site_url('tourism/goods/info/'. $value->goods_attr_id);?>">
                            <img class="lazy" src="/skins/home/images/load.jpg" data-original="<?php echo $this->config->show_image_url($value->images, '300-300'); ?>">
                            <p class="am-text-truncate">
                                <?php echo $value->goods_name;?>
                            </p>
                            <div class="area-price flex">
                                <div class="price"><span>￥</span><?php echo $value->shop_price; ?></div>
                                <s>￥<?php echo $value->market_price; ?></s>
                            </div>
                            <div class="dikou">
                                <i class="flex flex-1">
                                    <span>可抵扣<?php echo $value->swim;?></span>
                                </i>
                                <div class="tag">
                                    <div class="test"></div>
                                    <div class="test1"></div>
                                </div>
                            </div>
                        </a>
                    </li>
                    <?php endforeach; ?>
                <?php endif; ?>
            </ul>
        </div>
        <?php endif; ?>
      
        <div class="am-tab-panel" id="chuyou">
        
        </div>
        
        
        <div class="am-tab-panel" id="renxinggou">
        
        </div>
         <a href="<?php echo site_url('tourism/goods/search'); ?>" class="shop-mose">查看更多</a>
</section>
</body>
</html>